package com.fmy.mcsecurity.token;

import com.fmy.mcsecurity.commons.unusual.TokenVerfiyException;
import org.springframework.security.core.Authentication;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName TokenVerification
 * @Description TODO token验证接口
 * @createTime 2019/10/23 13:56
 */
public interface TokenVerification {

    /**
     * 没用了，过于浪费资源，多此一举
     */
    @Deprecated
    void verification(String token) throws TokenVerfiyException;

    /**
     * 集合获取和验证一体
     */
    Authentication get(String token);
}
